﻿@model FlyingClub.Models.LogOnModel

@{
    ViewBag.Title = "Se connecter";
}

<h1>@ViewBag.Title</h1>
<p>
    Entrez une adresse email et un mot de passe.<br />
    <br />
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true, "Échec de la connexion. Corrigez les erreurs et réessayez.")

@using (Html.BeginForm())
{
    <p>@Html.LabelFor(m => m.Email)@Html.TextBoxFor(m => m.Email)<label style="width : auto; color : rgb(255, 0, 0);">*</label>@Html.ValidationMessageFor(m => m.Email)</p>
    <p class="break-line"></p>
    <p>@Html.LabelFor(m => m.Password)@Html.PasswordFor(m => m.Password)<label style="width : auto; color : rgb(255, 0, 0);">*</label>@Html.ValidationMessageFor(m => m.Password)</p>
    <p class="break-line"></p>
    <p><label></label><input type="submit" /><input type="submit" value="Se connecter" /><label style="width : auto; color : rgb(255, 0, 0);">*Champ requis</label></p>
    <p class="break-line"></p>
}
